}
}
Key newKey = Encryptor.generateKey();
company.setKey(Base64.objectToString(newKey));
ps = con.prepareStatement(
"update Company set key_ = ? where companyId = ?");
ps.setString(1, Base64.objectToString(Encryptor.generateKey()));
ps.setLong(2, companyId);
ps.executeUpdate();